/**
 * Copyright © 2015-2020 <a href="http://www.jeeplus.org/">JeePlus</a> All rights reserved.
 */
package com.jeeplus.modules.check.checkinclination.entity;

import com.jeeplus.modules.sys.entity.User;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.jeeplus.modules.sys.entity.Area;

import com.jeeplus.core.persistence.DataEntity;
import com.jeeplus.common.utils.excel.annotation.ExcelField;
import lombok.Data;

/**
 * 倾向性点检Entity
 * @author 刘明星
 * @version 2020-11-04
 */
@Data
public class CheckInclination extends DataEntity<CheckInclination> {
	
	private static final long serialVersionUID = 1L;
	@ExcelField(title="员工", fieldType=User.class, value="user.name", align=2, sort=1)
	private User user;		// 员工
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	@ExcelField(title="开始时间", align=2, sort=2)
	private Date time;		// 开始时间
	@ExcelField(title="地点", fieldType=Area.class, value="area.name", align=2, sort=3)
	private Area area;		// 地点
	@ExcelField(title="流程实例id", align=2, sort=10)
	private String procInsId;		// 流程实例id
	
	public CheckInclination() {
		super();
	}
	
	public CheckInclination(String id){
		super(id);
	}
}